﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div class="content_panel">
    <div class="box_center">
	    <div class="title"><span>Góc chia sẻ</span>
            <div class="bg" style="float: left;">
                <img src="../../Content/Images/Home/bg_title_right.png">
            </div>
            <% if (Request.IsAuthenticated)
               { %>
                 <% using (Html.BeginForm("ThemBaiChiaSe", "Home", FormMethod.Post))
                    { %>
                    <div style="text-align:right; padding-right: 5px;">
                        <input type="submit" name="sbt" id="sbt" value="Thêm bài chia sẻ mới" style="background-image: url(../../../Content/Images/Home/bgbutton.jpg); color: #FFFFFF; font-size: 16px; font-weight: bold; border: 1px #DBDBDB solid; height: 30px; cursor:pointer;" />
                    </div>
                 <% } %>
            <% } %>
        </div>
	    <div class="content">
        <% 
            var lst = Model.GocChiaSeModel.GetModel.LstObjModel.Where(n => n.DaDuyet.Value).ToList();
            foreach (var item in lst)
           { %>
		    <div class="list_item">
                <div class="img"><a href="<%= Url.Action("ChiTietGocChiaSe", "Home", new { id = item.ID }) %>" title="<%= item.TieuDe %>">
                    <img src="../../Content/Images/Items/<%= item.HinhMinhHoa %>" alt="<%= item.TieuDe %>" width="114" height="151"></a></div>
                <div class="text">
                    <a href="<%= Url.Action("ChiTietGocChiaSe", "Home", new { id = item.ID }) %>" title="<%= item.TieuDe %>" class="name"><%= item.TieuDe %></a><br>
                    <p><%= Html.Truncate(item.NoiDungRutGon, WebConfiguration.GocChiaSeSortDescription) %></p><br />
                    <a href="<%= Url.Action("ChiTietGocChiaSe", "Home", new { id = item.ID }) %>" title="Xem tiếp" class="next">Xem tiếp</a>
                </div>
            </div>
        <% } %>
		</div>
    </div>    
</div>    
</asp:Content>
